from django.db import models

# Create your models here.
class News(models.Model):
    title = models.CharField('标题', max_length=32)
    ctime = models.DateField('发表时间', auto_now_add=True)
    origin = models.CharField('来源', max_length=16)
    detail = models.CharField('详情', max_length=10240)
    class Meta:
        db_table = 'news'
